package main

import (
	"fmt"
	"strconv"
)

func main() {
	str := "42"
	ans, err := strconv.Atoi(str)
	if err != nil {
		fmt.Println("Error convert string to integer", err)
	}
	fmt.Println(ans)

	str2 := strconv.Itoa(42)
	fmt.Println(str2)

	i := 42
	x := float64(i)
	fmt.Println(x)
	fmt.Printf("\nVariable x has type %T and value %v", x, x)

}
